8136a1
@@ -248,7 +248,7 @@
static ASTNode literal(RexLiteral literal, boolean useTypeQualInLiteral) {
     case TIMESTAMP: {
       val = literal.getValue();
       type = HiveParser.TOK_TIMESTAMPLITERAL;
-      DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+      DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
       val = df.format(((Calendar) val).getTime());
       val = "'" + val + "'";
     }
